Alert dialogs should not have titles and should not be displayed in the
authorMatthias Clasen <mclasen@redhat.com>
Fri, 30 Dec 2005 05:37:44 +0000 (05:37 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Fri, 30 Dec 2005 05:37:44 +0000 (05:37 +0000)
2005-12-30  Matthias Clasen  <mclasen@redhat.com>

        * gtk/gtkmessagedialog.c (gtk_message_dialog_init):
         (setup_type): Alert dialogs should not have titles and should
        not be displayed in the taskbar.  (#310443, Carlos Garnacho Parro,
        Dennis Cranston)

ChangeLog
ChangeLog.pre-2-10
gtk/gtkmessagedialog.c

index 050a14133ca86195d7e1489fd0c5cfb8049ed7b1..97357e0f7523ccb4e06071bc1024eb3fa8fa1493 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-12-30  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkmessagedialog.c (gtk_message_dialog_init):
+        (setup_type): Alert dialogs should not have titles and should 
+       not be displayed in the taskbar.  (#310443, Carlos Garnacho Parro,
+       Dennis Cranston)
+
 2005-12-29  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkliststore.c: 
index 050a14133ca86195d7e1489fd0c5cfb8049ed7b1..97357e0f7523ccb4e06071bc1024eb3fa8fa1493 100644 (file)
@@ -1,3 +1,10 @@
+2005-12-30  Matthias Clasen  <mclasen@redhat.com>
+
+       * gtk/gtkmessagedialog.c (gtk_message_dialog_init):
+        (setup_type): Alert dialogs should not have titles and should 
+       not be displayed in the taskbar.  (#310443, Carlos Garnacho Parro,
+       Dennis Cranston)
+
 2005-12-29  Matthias Clasen  <mclasen@redhat.com>
 
        * gtk/gtkliststore.c: 
index a94634ec92f1cb9830b5a91eee793f83d0aa5e76..4995f65ad73e3c6d096ebcd2ff3f7d878b6df40e 100644 (file)
@@ -172,6 +172,8 @@ gtk_message_dialog_init (GtkMessageDialog *dialog)
   priv = GTK_MESSAGE_DIALOG_GET_PRIVATE (dialog);
 
   gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE);
+  gtk_window_set_title (GTK_WINDOW (dialog), "");
+  gtk_window_set_skip_taskbar_hint (GTK_WINDOW (dialog), TRUE);
 
   priv->has_primary_markup = FALSE;
   priv->has_secondary_text = FALSE;
@@ -306,12 +308,8 @@ setup_type (GtkMessageDialog *dialog,
     stock_id = GTK_STOCK_DIALOG_INFO;
 
   if (gtk_stock_lookup (stock_id, &item))
-    {
-      gtk_image_set_from_stock (GTK_IMAGE (dialog->image), stock_id,
-                                GTK_ICON_SIZE_DIALOG);
-      
-      gtk_window_set_title (GTK_WINDOW (dialog), item.label);
-    }
+    gtk_image_set_from_stock (GTK_IMAGE (dialog->image), stock_id,
+                              GTK_ICON_SIZE_DIALOG);
   else
     g_warning ("Stock dialog ID doesn't exist?");  
 }